﻿<UserControl x:Class="WPForms.Phone.View.NumberField"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="80" d:DesignWidth="480"
    HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch"
    >
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition x:Name="labelColumn" Width="{Binding LabelWidth, Converter={StaticResource GridLengthConverter}}"/>
            <ColumnDefinition x:Name="textColumn"  Width="1*"/>
        </Grid.ColumnDefinitions>
        <TextBlock VerticalAlignment="Center" Text="{Binding Label}"/>
        <TextBox Name="simpleText" HorizontalAlignment="Stretch" InputScope="Number" HorizontalContentAlignment="Stretch" VerticalAlignment="Center" Grid.Column="1" Text="{Binding Value, Mode=TwoWay}"/>            
    </Grid>
</UserControl>
